﻿Imports DTO
Imports DAO
Public Class LoaiMachDieuKhienBUS
    Function layDSLoaiMDK() As List(Of LoaiMachDieuKhienDTO)
        Dim dp As New LoaiMachDieuKhienDAO

        Return dp.layDSLoaiMDK()
    End Function

    Function themLoaiMDK(ByVal tenLoai As String) As Integer
        Dim dp As New LoaiMachDieuKhienDAO
        Return dp.themLoaiMDK(tenLoai)
    End Function

    Function capNhatLMDK(ByVal maLoai As Integer, ByVal tenLoai As String) As Integer
        Dim dp As New LoaiMachDieuKhienDAO
        Return dp.capNhatLMDK(maLoai, tenLoai)
    End Function

    Function xoaLoaiMDK(ByVal maLoai As Integer) As Integer
        Dim dp As New LoaiMachDieuKhienDAO
        Return dp.xoaLoaiMDK(maLoai)
    End Function

End Class
